home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / gcc / libnix.lha / gnu / lib / libnix / sources.lha / nixmain / makefile < prev   
Encoding:
Makefile  |  1999-07-24  |  1.3 KB  |  49 lines

  1. OBJECTS=__nocommandline.o __stdiowin.o
  2. BOBJECTS=__nocommandline.bo __stdiowin.bo
  3. OPTIONS=-I ../headers -O3 -Wall
  4. BOPTIONS=$(OPTIONS) -fbaserel -msmall-code
  5. REDEF=-D _DOSBase=___DOSBase \
  6.       -D _UtilityBase=___UtilityBase \
  7.       -D _MathIeeeSingBasBase=___MathIeeeSingBasBase \
  8.       -D _MathIeeeSingTransBase=___MathIeeeSingTransBase \
  9.       -D _MathIeeeDoubBasBase=___MathIeeeDoubBasBase \
  10.       -D _MathIeeeDoubTransBase=___MathIeeeDoubTransBase \
  11.       -D _LocaleBase=___LocaleBase
  12. PATTERN="*"
  13.  
  14. #Use private library bases to avoid naming collisions
  15. %.o: %.c
  16.     gcc $(OPTIONS) -S $*.c -o $*.S 2>&1|tee $*.err
  17.     gcc -E -traditional -P $(REDEF) $*.S -o $*2.S
  18.     gcc $*2.S -c -o $*.o
  19.     -rm $*.S $*2.S
  20.     -if test ! -s $*.err; then rm $*.err; fi
  21.  
  22. %.bo: %.c
  23.     gcc $(BOPTIONS) -S $*.c -o $*.S 2>&1|tee $*.err
  24.     gcc -E -traditional -P $(REDEF) $*.S -o $*2.S
  25.     gcc $*2.S -c -o $*.bo
  26.     -rm $*.S $*2.S
  27.     -if test ! -s $*.err; then rm $*.err; fi
  28.  
  29. all: libnixmain.a blibnixmain.a
  30.  
  31. clean:
  32.     -rm *.o *.bo *.err
  33.  
  34. veryclean: clean
  35.     -rm libnixmain.a blibnixmain.a
  36.  
  37. libnixmain.a: $(OBJECTS) makefile
  38.     -rm libnixmain.a
  39.     ar -q libnixmain.a $(OBJECTS)
  40.     ranlib libnixmain.a
  41.  
  42. blibnixmain.a: $(BOBJECTS) makefile
  43.     -rm blibnixmain.a
  44.     ar -q blibnixmain.a $(BOBJECTS)
  45.     ranlib blibnixmain.a
  46.  
  47. .SUFFIXES:
  48. .SUFFIXES: .o .bo
  49.